import request from '@/utils/request'

// 查询工作年限列表
export function listIfmWorkYear(query) {
  return request({
    url: '/workYear/ifmWorkYear/list',
    method: 'get',
    params: query
  })
}

// 查询工作年限详细
export function getIfmWorkYear(workId) {
  return request({
    url: '/workYear/ifmWorkYear/' + workId,
    method: 'get'
  })
}

// 新增工作年限
export function addIfmWorkYear(data) {
  return request({
    url: '/workYear/ifmWorkYear',
    method: 'post',
    data: data
  })
}

// 修改工作年限
export function updateIfmWorkYear(data) {
  return request({
    url: '/workYear/ifmWorkYear',
    method: 'put',
    data: data
  })
}

// 删除工作年限
export function delIfmWorkYear(workId) {
  return request({
    url: '/workYear/ifmWorkYear/' + workId,
    method: 'delete'
  })
}
